<?php

if(isset($_GET["id"])) {

	session_start();
	
	$token = hash("sha512", mt_rand(0, mt_getrandmax()));
	
	echo ($_SESSION[$_GET["id"]] = $token);
	
	exit;
	
}

header("HTTP/1.1 404 Not Found", true, 404); 

?>